<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<jsp:include page="/jsp/loginCheck.jsp" />
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<s:head theme="ajax" calendarcss="calendar-green"/>  
	
	<title>Usuários</title>
	<link href="../css/estiloframes.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" href="../css/blue.css" type="text/css" id="" media="print, projection, screen" />
	<link rel="stylesheet" href="../css/ui.all.css" type="text/css"/>
	
	<script type="text/javascript" src="../js/jquery-latest.js"></script>
	<script type="text/javascript" src="../js/jquery.tablesorter.js"></script>
	<script type="text/javascript" src="../js/jquery.tablesorter.pager.js"></script>
	<script type="text/javascript">
	$(document).ready(function() {
		$("table").tablesorter({
			headers: {3: {sorter: false}},
			widgets: ['zebra']
			}).tablesorterPager({container: $("#pager")});
	}); 
	</script>
	
	<script type="text/javascript">
			 function popup_window(url,w,h)
			 {
			  var width=w;
			  var height=h;
			  var from_top=150;
			  var from_left=500;
			  var toolbar='no';
			  var location='no';
			  var directories='no';
			  var status='no';
			  var menubar='no';
			  var scrollbars='yes';
			  var resizable='yes';
			  var atts='width='+width+'show,height='+height+',top='+from_top+',screenY=';
			  atts+= from_top+',left='+from_left+',screenX='+from_left+',toolbar='+toolbar;
			  atts+=',location='+location+',directories='+directories+',status='+status;
			  atts+=',menubar='+menubar+',scrollbars='+scrollbars+',resizable='+resizable;
			  
			  window.open(url,'win_name',atts);
			 }
		 </script>	  
		
</head>
	
<body>
	<div id="corpo">
		<br/>
		<p class="titulo_texto">Relatório - Operacional</p>
		
		<div style="padding-left:10px;padding-right:10px;">
				<table class="tablesorter" align="center" width="620" border="0" cellpadding="4" cellspacing="4">	
					<thead>
						<tr class="header" align="center">
							<th><s:text name="Código do Pesquisador"/></th>
							<th><s:text name="Nome do Pesquisador"/></th>
							<th><s:text name="Mensagem de Erro(Crítica)"/></th>
							<th><s:text name=" "/></th>						
						</tr>
					</thead>	
				    <tbody>
						<s:iterator value="listSearch" status="listSearchStatus">
							<tr>								
								<td><div id="text"><s:property value="id_user"/></div></td>
								<td><div id="text"><s:property value="user"/></div></td>
								<td><div id="text"><s:property value="message"/></div></td>
								<td>
									<div>
										<a href="javascript: popup_window('<s:url action='popupRelatorioOperacional'><s:param name="searchBean.id_search" value="%{id_search}" /></s:url>',675,720)" >
											<s:text name="Visualizar"/>
										</a>	
									</div>
								</td>						
							</tr>
						</s:iterator>													
					</tbody>		
				  </table>
				  <div id="pager" class="pager">
					<form>
						<img src="../images/icons/first.png" class="first"/>
						<img src="../images/icons/prev.png" class="prev"/>
						<input type="text" class="pagedisplay" disabled="disabled"/>
						<img src="../images/icons/next.png" class="next"/>
						<img src="../images/icons/last.png" class="last"/>
						
						<select class="pagesize">
							<option selected="selected"  value="5">5</option>
							<option value="10">10</option>													
						</select>
					</form>
				</div>				
			  </div>			
		</div>
	</body>
</html>